home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
015
/
pcmagff.arc
/
FORMFEED.SCR
< prev
Wrap
Text File
|
1986-07-16
|
577b
|
41 lines
N FORMFEED.COM
A
JMP 0130 ; Jump to Init
DW 0,0
STI ; New Int. 9
PUSH AX
IN AL,60 ; Get KEY
CMP AL,37 ; See if PrtSc
JNZ 012A
MOV AH,02 ; Check for Alt
INT 16
TEST AL,08
JZ 012A
PUSH DX
MOV DX,0000 ; Check printer
MOV AH,02 ; status
INT 17
TEST AH,80
JZ 0129
MOV AL,0C ; Print formfeed
MOV AH,00
INT 17
POP DX
POP AX
CS:
JMP FAR [0102] ; Run old Int. 9
MOV AX,3509 ; Init: save
INT 21 ; Int. 9
MOV [0102],BX
MOV [0104],ES
MOV DX,0106 ; Set new
MOV AX,2509 ; INT. 9
INT 21
MOV DX,0130
INT 27 ; Terminate
R CX
4A
W
Q